package com.example.server;

import com.example.util.iotDao;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class Server extends Application{
    @Override
    public void start(Stage primaryStage) throws Exception{
        FXMLLoader fxmlLoader = new FXMLLoader(Server.class.getResource("Server.fxml"));
        //设置客户端主窗口图标
        primaryStage.getIcons().add(new Image(Server.class.getResource("logo.png").toExternalForm()));
        Scene scene = new Scene(fxmlLoader.load(), 600, 400);
        primaryStage.setTitle("物联网数据中心服务器端");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }

}
